import 'package:flutterproject/generated/json/base/json_field.dart';
import 'package:flutterproject/generated/json/order_list_bean.g.dart';
import 'dart:convert';

@JsonSerializable()
class OrderListBean {

	int? last;
	List<OrderListList>? list;
  
  OrderListBean();

  factory OrderListBean.fromJson(Map<String, dynamic> json) => $OrderListBeanFromJson(json);

  Map<String, dynamic> toJson() => $OrderListBeanToJson(this);

  OrderListBean copyWith({int? last, List<OrderListList>? list}) {
      return OrderListBean()..last= last ?? this.last
			..list= list ?? this.list;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class OrderListList {

	int? id;
	int? createTime;
	String? orderNo;
	String? totalAmount;
	int? state;
	int? productId;
	String? productTag;
	String? productName;
	int? productNum;
	String? productDescription;
  
  OrderListList();

  factory OrderListList.fromJson(Map<String, dynamic> json) => $OrderListListFromJson(json);

  Map<String, dynamic> toJson() => $OrderListListToJson(this);

  OrderListList copyWith({int? id, int? createTime, String? orderNo, String? totalAmount, int? state, int? productId, String? productTag, String? productName, int? productNum, String? productDescription}) {
      return OrderListList()..id= id ?? this.id
			..createTime= createTime ?? this.createTime
			..orderNo= orderNo ?? this.orderNo
			..totalAmount= totalAmount ?? this.totalAmount
			..state= state ?? this.state
			..productId= productId ?? this.productId
			..productTag= productTag ?? this.productTag
			..productName= productName ?? this.productName
			..productNum= productNum ?? this.productNum
			..productDescription= productDescription ?? this.productDescription;
  }
    
  @override
  String toString() {
    return jsonEncode(this);
  }
}